﻿using System;
using SuppKids.Core.Exceptions;
using SuppKids.Core.Security.File;

namespace SuppKids.Core.Security
{
    public class LicenseStorage : AccessibleFileStorage
	{
		protected override void EnsureDirectoryExistence(string path, bool isFile)
		{
			try
			{
				base.EnsureDirectoryExistence(path, isFile);
			}
			catch (Exception ex)
			{
				throw new ErrorCodeException(ErrorCodes.ActivationToolCode, ErrorCodes.ActivationTool.CannotCreateLicenseFolder);
			}
		}
	}
}
